package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by oyhk on 16/7/15.
 */
public class ArticleDto extends DtoEntity {

    //名称
    private String name;

    //关键字
    private String keyword;

    //文章详情
    private String content;

    //显示顺序
    private Integer displayOrderId;

    //平台id
    private Long mallId;

    //父分类
    @NotNull(message = "parentCategoryId")
    private Long parentCategoryId;
    private String parentCategoryText;

    //分类
    @NotNull(message = "categoryId")
    private Long categoryId;
    private String categoryText;

    //点击次数
    private Long clickCounts;



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getDisplayOrderId() {
        return displayOrderId;
    }

    public void setDisplayOrderId(Integer displayOrderId) {
        this.displayOrderId = displayOrderId;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Long getParentCategoryId() {
        return parentCategoryId;
    }

    public void setParentCategoryId(Long parentCategoryId) {
        this.parentCategoryId = parentCategoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getClickCounts() {
        return clickCounts;
    }

    public void setClickCounts(Long clickCounts) {
        this.clickCounts = clickCounts;
    }

    public String getParentCategoryText() {
        return parentCategoryText;
    }

    public void setParentCategoryText(String parentCategoryText) {
        this.parentCategoryText = parentCategoryText;
    }

    public String getCategoryText() {
        return categoryText;
    }

    public void setCategoryText(String categoryText) {
        this.categoryText = categoryText;
    }

    @Override
    public String toString() {
        return "ArticleDto{" +
                "name='" + name + '\'' +
                ", keyword='" + keyword + '\'' +
                ", content='" + content + '\'' +
                ", displayOrderId=" + displayOrderId +
                ", mallId=" + mallId +
                ", parentCategoryId=" + parentCategoryId +
                ", parentCategoryText='" + parentCategoryText + '\'' +
                ", categoryId=" + categoryId +
                ", categoryText='" + categoryText + '\'' +
                ", clickCounts=" + clickCounts +
                '}';
    }
}
